package jobManagement.impl;

import org.globus.wsrf.ResourceKey;
import org.globus.wsrf.impl.ResourceHomeImpl;
import org.globus.wsrf.impl.SimpleResourceKey;

public class JobManagementResourceHome extends ResourceHomeImpl {

	public ResourceKey create() throws Exception {
		// Create a resource and initialize it
		JobManagementResource jobManagementResource = (JobManagementResource) createNewInstance();
		jobManagementResource.initialize();
		// Get key
		ResourceKey key = new SimpleResourceKey(keyTypeName,jobManagementResource.getID());
		// Add the resource to the list of resources in this home
		add(key, jobManagementResource);
		return key;
	}

}